﻿namespace Framework.Text
{
    /// <summary>
    /// 序列化器 接口
    /// </summary>
    public interface ISerializer<T>
    {
        /// <summary>
        /// 序列化
        /// </summary>
        /// <returns></returns>
        string Serialize(T obj);

        /// <summary>
        /// 反序列化
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        T Deserialize(string input);
    }
}